home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / ctutor2.zip / BREAKCON.C < prev    next >
C/C++ Source or Header  |  1987-07-04  |  374b  |  18 lines

  1.                                           /* Chapter 3 - Program 5 */
  2. main()
  3. {
  4. int xx;
  5.  
  6.    for(xx = 5;xx < 15;xx = xx + 1){
  7.       if (xx == 8)
  8.          break;
  9.       printf("In the break loop, xx is now %d\n",xx);
  10.    }
  11.  
  12.    for(xx = 5;xx < 15;xx = xx + 1){
  13.       if (xx == 8)
  14.          continue;
  15.       printf("In the continue loop, xx is now %d\n",xx);
  16.    }
  17. }
  18.